'''
Created on Feb 11, 2010

@author: christianp
'''
import xml.sax.handler
#from TileSeeder.TileSeed import TileSeed

class XMLParser(xml.sax.handler.ContentHandler):
    
    __tilemap = False
    
    tile_seed = None

    def __init__(self):
        '''
        Constructor
        '''
    
    def startElement(self, name, attributes):
        '''
        if name == "TileMap":
            print("TileMap")
            print("href = " + str(attributes.get("href","")))
            print("srs = " + str(attributes.get("srs","")))
            print("title = " + str(attributes.get("title","")))
            print("profile = " + str(attributes.get("profile","")))
            self.tile_seed = TileSeed()
            self.__tilemap = True'''
 
    def characters(self, data):
        '''
            Do nothing
        '''
    
    def endElement(self, name):
        if name == "TileMap":
            self.__tilemap = False